package day4;

import java.util.Scanner;

public class Sample5 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("1:登录菜单\n2:退出");
        System.out.println("**************");
        int level = input.nextInt();
        switch (level) {
            case 1:
                System.out.println("登录系统");
                System.out.println("进入二级菜单");
                int level2 = input.nextInt();
                switch (level2) {
                    case 1:
                        System.out.println("客户信息管理");
                        System.out.println("进入三级菜单");
                        int level3 = input.nextInt();
                        switch (level3) {
                            case 1:
                                System.out.println("显示所有用户信息");
                                break;
                            case 2:
                                System.out.println("添加客户信息");
                                break;
                            case 3:
                                System.out.println("修改客户信息");
                                break;
                            case 4:
                                System.out.println("查询客户信息");
                                break;
                            default:
                                System.out.println("输入有误");
                                break;
                        }
                        break;
                    case 2:
                        System.out.println("购物结算");
                        break;
                    case 3:
                        System.out.println("真情回馈");
                        System.out.println("进入菜单");
                        int level4=input.nextInt();
                        switch (level4){
                            case 1:
                                System.out.println("幸运大放送");
                                break;
                            case 2:
                                System.out.println("幸运抽奖");
                                break;
                            case 3:
                                System.out.println("生日问候");
                                break;
                        }
                        break;
                    case 4:
                        System.out.println("注销");
                        break;
                    default:
                        System.out.println("选择错误"); break;
                }
                break;
            case 2:
                System.out.println("退出");
                break;
            default:
                System.out.println("发生错误");
                break;

        }
    }
}
